<?php

namespace Home\Controller;

use Think\Controller;

class IndexController extends Controller
{

    public function index()
    {

        $user = M('sys_user'); // 实例化Data数据模型$this->data = $Data->select();

        $data = $user
            ->select();
        $this->assign("data", $data);
//        dump($data);exit();
        $this->display();

    }


}